<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="UTF-8">
    <title>vue-form_submit</title>
    <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.4.1/dist/css/bootstrap.min.css"
        integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
    <style>
        .bg {
            background: green;
            height: 20px;
        }
    </style>
</head>

<body>
    <div id="app" class="container">
        <div class="bg" :style="{width:progress+'%'}">
        </div>
    </div>
</body>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script>
    var app = new Vue({
        el: "#app",
        data: {
            progress: 0
        },
        methods: {
     
        },
        mounted(){
            let timer=setInterval(() => {
                    this.progress++;
                    if(this.progress==100){
                        clearInterval(timer)
                    }
            }, 100)
        }
    })
</script>

</html>